<template>
  <div>
    <div class="head">
      <img src=@/assets/img/网易严选.png alt="网易严选">
      <div class="searchbox">
        <van-icon name="search-copy" class-prefix="icon" class="iconfont"/>
        <span @click="$router.push('/search')">搜索商品, 共43408款好物</span>
      </div>
      <van-button type="primary" color="green" plain size="mini" block to="/login">登录</van-button>
    </div>
  </div>
</template>

<script>

  export default {
    
  }
</script>

<style lang="scss" scoped>
  .head{
    width: 100%;
    height: 47.72px;
    background: red;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    img{
      width: 75px;
      height: 22px;
      margin:auto 16.28px;
      justify-content: start;
    }
    .van-button{
      width: 56PX;
      height: 24px;
      border-radius: 3px;
      margin: auto 16.28px;
    }
    .searchbox{
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
      background: #aaa;
      height: 30px;
      border-radius: 8px;
      .iconfont icon icon-search-copy{
        margin-right: 5px;
      }
    }
    .searchbox span{
      font-size: 14px;
    }
  }

</style>